<?php
session_start();
      if (isset($_SESSION['k_username'])) {
  include('../../conexion.inc.php');
$link = Conectarse();
$editadopor=$_SESSION['k_username'];
$fecha = date("y-m-d h:i:s");
mysql_select_db("gotica_sociosgotica",$link);
$sql = "INSERT INTO socio_tiposocio (idsocio, idtiposocio) VALUES ('$_POST[idsocio]', '$_POST[tiposocio]') ";
$resulta = mysql_query($sql);

?>
<SCRIPT LANGUAGE="javascript">
<? echo "location.href = \"tiposocio.php?valor=$_POST[idsocio] \" "; ?>
</SCRIPT>
<?
}else
{
	echo "<SCRIPT LANGUAGE=\"javascript\">";
echo "location.href = \"index.php\"";
echo "</SCRIPT>";
	}
?>